package zlmedia_sdk

type StartRecordReq struct {
	Type           int    `json:"type" url:"type"`                                           //0为hls，1为mp4
	Vhost          string `json:"vhost" url:"vhost"`                                         //虚拟主机，例如__defaultVhost__
	App            string `json:"app" url:"app"`                                             //应用名，例如 live
	Stream         string `json:"stream" url:"stream"`                                       //流id，例如 obs
	CustomizedPath string `json:"customized_path,omitempty" url:"customized_path,omitempty"` //录像保存目录
	MaxSecond      int    `json:"max_second,omitempty" url:"max_second,omitempty"`           //mp4录像切片时间大小,单位秒，置0则采用配置项
}

func (receiver StartRecordReq) api() string {
	return "/index/api/startRecord"
}

type StartRecordRes struct {
	ResCommon
}
